package day1;

public class Demo6 {
    public static void main(String[] args) {
        System.out.println("素数有：");
        int count = 0;
        for (int i = 101; i <=200; i++) {
            int temp = 0;
            for (int j = 2; j <= Math.sqrt(i); j++) {
                if (i % j == 0) {
                    temp=1;
                    break;
                }
            }
            if(temp==0) {
                count++;
                System.out.println(i);
            }
        }
        System.out.println("共有素数："+count);
    }
}
